#pragma once
#include "stdafx.h"

using namespace System;
using namespace System::Data;

namespace Librarian
{
	namespace Entities
	{
		public ref class CardEntity
		{

		private:
			String^ _CardNo;
			String^ _Name;
			String^ _Department;
			wchar_t  _CardType;

		public:
			property String^ CardNo
			{
				String^ get()
				{
					return this->_CardNo;
				}
				void set(String^ value)
				{
					this->_CardNo = value;
				}
			}
			property String^ Name
			{
				String^ get()
				{
					return this->_Name;
				}
				void set(String^ value)
				{
					this->_Name = value;
				}
			}
			property String^ Department
			{
				String^ get()
				{
					return this->_Department ;
				}
				void set(String^ value)
				{
					this->_Department = value;
				}
			}
			property wchar_t CardType
			{
				wchar_t get()
				{
					return this->_CardType ;
				}
				void set(wchar_t value)
				{
					this->_CardType = value;
				}
			}
		public:
			virtual String^ ToString() override
			{
				return this->_CardNo;
			}
		};


	}
}